package 笔记.设计模式.单例模式;

/**
 * @Author chl
 * @Description 枚举单例模式
 * @Date 20:03 2021/6/27
 **/
public enum PersonEnum {
    INSTANCE;


    private HungryMan hungryMan;



    PersonEnum(){
        hungryMan = HungryMan.getHungryMan();
    }
    public HungryMan getInstance() {
        return hungryMan;
    }

}
